const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    onLoad() {
        console.warn("random", GNum.randomInt(1, 10));
        console.warn("random", GNum.random_1To1());
        console.warn("timeFormatToMin", GNum.timeFormatToMin(179));
        console.warn("timeFormatToHour", GNum.timeFormatToHour(16));

        console.warn("clamp", GNum.clamp(16, [20, 30]));//20
        console.warn("clamp", GNum.clamp(16, [1, 10]));//10
        console.warn("clamp", GNum.clamp(16, [10, 20]));//16
        console.warn("clamp", GNum.clamp(16, [20, Infinity]));//20
    }

}